package com.yubest.consumer.controller;

import com.yubest.provider.bean.Version;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author hweiyu
 * @Description
 * @Date 2022/1/26 18:00
 */
@RestController
public class DemoController {

    @Autowired
    private Version version;

    @GetMapping(value = "/getConfig")
    public Object getConfig() {
        return version.getInfo();
    }
}
